package com.mxpio.erp.technology.provider;

import com.mxpioframework.jpa.query.*;
import com.mxpioframework.security.access.datascope.provider.DataScapeProvider;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author : wpp
 * @Datetime : 2023/4/19 16:31
 * @Desc :
 * @Modor :  Modifytime:
 * @modDesc : 带材料牌号bom
 */
@Component
public class ItemWithMaterialBrandProvider implements DataScapeProvider {
    @Override
    @Transactional(readOnly = true)
    public List<Criterion> provide() {
        List<Criterion> appendCriterions = new ArrayList<>();
        appendCriterions.add(new SimpleCriterion("materialBrand", Operator.IS_NOT_NULL,null));
        return appendCriterions;
    }
}
